﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace StripeOne.Core.S1Exceptions
{
    public class S1Exception : Exception
    {
        public override string Message
        {
            get
            {
                if (base.InnerException != null)
                {
                    return base.Message + ": " + base.InnerException.Message;
                }
                return base.Message;
            }
        }
        public S1Exception(string message, Exception innerException)
            : base(message, innerException)
        {
        }
        protected S1Exception(SerializationInfo info, StreamingContext ctxt)
            : base(info, ctxt)
        {
        }
    }
}
